package vp.remedies.dr.home.allmain.remedy.activity;

import vp.remedies.dr.home.R;
import vp.remedies.dr.home.utils.Constantce;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class InfertilityinManActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.infertility_in_man);
		setView(Constantce.LANGUAGE_ENGLISH);
	}

	void setView(String language) {
		TextView headerTxt = (TextView) findViewById(R.id.hearderTxt);
		TextView detail1Txt = (TextView) findViewById(R.id.detail1Txt);
		TextView detail2Txt = (TextView) findViewById(R.id.detail2Txt);
		TextView detail3Txt = (TextView) findViewById(R.id.detail3Txt);
		TextView detail4Txt = (TextView) findViewById(R.id.detail4Txt);
		TextView detail5Txt = (TextView) findViewById(R.id.detail5Txt);
		TextView detail6Txt = (TextView) findViewById(R.id.detail6Txt);
		TextView detail7Txt = (TextView) findViewById(R.id.detail7Txt);
		TextView detail8Txt = (TextView) findViewById(R.id.detail8Txt);
		TextView detail9Txt = (TextView) findViewById(R.id.detail9Txt);
		TextView detail10Txt = (TextView) findViewById(R.id.detail10Txt);
		TextView detail11Txt = (TextView) findViewById(R.id.detail11Txt);
		TextView detail12Txt = (TextView) findViewById(R.id.detail12Txt);
		TextView detail13Txt = (TextView) findViewById(R.id.detail13Txt);
		TextView detail14Txt = (TextView) findViewById(R.id.detail14Txt);
		TextView detail15Txt = (TextView) findViewById(R.id.detail15Txt);
		TextView detail16Txt = (TextView) findViewById(R.id.detail16Txt);
		TextView detail17Txt = (TextView) findViewById(R.id.detail17Txt);
		TextView detail18Txt = (TextView) findViewById(R.id.detail18Txt);
		TextView detail19Txt = (TextView) findViewById(R.id.detail19Txt);
		TextView detailNoteTxt = (TextView) findViewById(R.id.detailNoteTxt);
		TextView detail20Txt = (TextView) findViewById(R.id.detail20Txt);
		TextView detail21Txt = (TextView) findViewById(R.id.detail21Txt);

		String headerTxtString = null;
		String infertilitydetail_1 = null;
		String infertilitydetail_2 = null;
		String infertilitydetail_3 = null;
		String infertilitydetail_4 = null;
		String infertilitydetail_5 = null;
		String infertilitydetail_6 = null;
		String infertilitydetail_7 = null;
		String infertilitydetail_8 = null;
		String infertilitydetail_9 = null;
		String infertilitydetail_10 = null;
		String infertilitydetail_11 = null;
		String infertilitydetail_12 = null;
		String infertilitydetail_13 = null;
		String infertilitydetail_14 = null;
		String infertilitydetail_15 = null;
		String infertilitydetail_16 = null;
		String infertilitydetail_17 = null;
		String infertilitydetail_18 = null;
		String infertilitydetail_19 = null;
		String infertilitydetail_Note = null;
		String infertilitydetail_20 = null;
		String infertilitydetail_21 = null;

		if (language.equals(Constantce.LANGUAGE_HINDI)) {
			headerTxtString = getResources().getString(
					R.string.infertilitydetail_header_hi);
			infertilitydetail_1 = getResources().getString(
					R.string.infertilitydetail_1_hi);
			infertilitydetail_2 = getResources().getString(
					R.string.infertilitydetail_2_hi);
			infertilitydetail_3 = getResources().getString(
					R.string.infertilitydetail_3_hi);
			infertilitydetail_4 = getResources().getString(
					R.string.infertilitydetail_4_hi);
			infertilitydetail_5 = getResources().getString(
					R.string.infertilitydetail_5_hi);
			infertilitydetail_6 = getResources().getString(
					R.string.infertilitydetail_6_hi);
			infertilitydetail_7 = getResources().getString(
					R.string.infertilitydetail_7_hi);
			infertilitydetail_8 = getResources().getString(
					R.string.infertilitydetail_8_hi);
			infertilitydetail_9 = getResources().getString(
					R.string.infertilitydetail_9_hi);
			infertilitydetail_10 = getResources().getString(
					R.string.infertilitydetail_10_hi);
			infertilitydetail_11 = getResources().getString(
					R.string.infertilitydetail_11_hi);
			infertilitydetail_12 = getResources().getString(
					R.string.infertilitydetail_12_hi);
			infertilitydetail_13 = getResources().getString(
					R.string.infertilitydetail_13_hi);
			infertilitydetail_14 = getResources().getString(
					R.string.infertilitydetail_14_hi);
			infertilitydetail_15 = getResources().getString(
					R.string.infertilitydetail_15_hi);
			infertilitydetail_16 = getResources().getString(
					R.string.infertilitydetail_16_hi);
			infertilitydetail_17 = getResources().getString(
					R.string.infertilitydetail_17_hi);
			infertilitydetail_18 = getResources().getString(
					R.string.infertilitydetail_18_hi);
			infertilitydetail_Note = getResources().getString(
					R.string.infertilitydetail_note_hi);
			infertilitydetail_19 = getResources().getString(
					R.string.infertilitydetail_19_hi);
			infertilitydetail_20 = getResources().getString(
					R.string.infertilitydetail_20_hi);
			infertilitydetail_21 = getResources().getString(
					R.string.infertilitydetail_21_hi);
		} else {
			headerTxtString = getResources().getString(
					R.string.infertilitydetail_header_en);
			infertilitydetail_1 = getResources().getString(
					R.string.infertilitydetail_1_en);
			infertilitydetail_2 = getResources().getString(
					R.string.infertilitydetail_2_en);
			infertilitydetail_3 = getResources().getString(
					R.string.infertilitydetail_3_en);
			infertilitydetail_4 = getResources().getString(
					R.string.infertilitydetail_4_en);
			infertilitydetail_5 = getResources().getString(
					R.string.infertilitydetail_5_en);
			infertilitydetail_6 = getResources().getString(
					R.string.infertilitydetail_6_en);
			infertilitydetail_7 = getResources().getString(
					R.string.infertilitydetail_7_en);
			infertilitydetail_8 = getResources().getString(
					R.string.infertilitydetail_8_en);
			infertilitydetail_9 = getResources().getString(
					R.string.infertilitydetail_9_en);
			infertilitydetail_10 = getResources().getString(
					R.string.infertilitydetail_10_en);
			infertilitydetail_11 = getResources().getString(
					R.string.infertilitydetail_11_en);
			infertilitydetail_12 = getResources().getString(
					R.string.infertilitydetail_12_en);
			infertilitydetail_13 = getResources().getString(
					R.string.infertilitydetail_13_en);
			infertilitydetail_14 = getResources().getString(
					R.string.infertilitydetail_14_en);
			infertilitydetail_15 = getResources().getString(
					R.string.infertilitydetail_15_en);
			infertilitydetail_16 = getResources().getString(
					R.string.infertilitydetail_16_en);
			infertilitydetail_17 = getResources().getString(
					R.string.infertilitydetail_17_en);
			infertilitydetail_18 = getResources().getString(
					R.string.infertilitydetail_18_en);
			infertilitydetail_Note = getResources().getString(
					R.string.infertilitydetail_note_en);
			infertilitydetail_19 = getResources().getString(
					R.string.infertilitydetail_19_en);
			infertilitydetail_20 = getResources().getString(
					R.string.infertilitydetail_20_en);
			infertilitydetail_21 = getResources().getString(
					R.string.infertilitydetail_21_en);
		}
		headerTxt.setText(headerTxtString);
		detail1Txt.setText(infertilitydetail_1);
		detail2Txt.setText(infertilitydetail_2);
		detail3Txt.setText(infertilitydetail_3);
		detail4Txt.setText(infertilitydetail_4);
		detail5Txt.setText(infertilitydetail_5);
		detail6Txt.setText(infertilitydetail_6);
		detail7Txt.setText(infertilitydetail_7);
		detail8Txt.setText(infertilitydetail_8);
		detail9Txt.setText(infertilitydetail_9);
		detail10Txt.setText(infertilitydetail_10);
		detail11Txt.setText(infertilitydetail_11);
		detail12Txt.setText(infertilitydetail_12);
		detail13Txt.setText(infertilitydetail_13);
		detail14Txt.setText(infertilitydetail_14);
		detail15Txt.setText(infertilitydetail_15);
		detail16Txt.setText(infertilitydetail_16);
		detail17Txt.setText(infertilitydetail_17);
		detail18Txt.setText(infertilitydetail_18);
		detail19Txt.setText(infertilitydetail_19);
		detailNoteTxt.setText(infertilitydetail_Note);
		detail20Txt.setText(infertilitydetail_20);
		detail21Txt.setText(infertilitydetail_21);

	}
}